package com.qtenv.datasync.service.controller;


import com.qtenv.datasync.base.Result;
import com.qtenv.datasync.service.service.TerminalsFreezeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 大表日冻结数据表（设备维度） 前端控制器
 * </p>
 *
 * @author CBL
 * @since 2022-08-05
 */
@RestController
@RequestMapping("/terminals/freeze")
public class TerminalsFreezeController {
    @Autowired
    private TerminalsFreezeService terminalsFreezeService;

    @GetMapping("/getTerminalUsageDataList")
    public Result<?> getTerminalUsageDataList(@RequestParam("tenantId") String tenantId, @RequestParam("terminalId") String terminalId) {
        return Result.ok(terminalsFreezeService.getTerminalUsageDataList(tenantId, terminalId));
    }
}
